<?php if(!defined('HDPHP_PATH'))exit;C('SHOW_NOTICE',FALSE);?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>列表页</title>
  <link rel="stylesheet" type="text/css" href="http://127.0.0.1/my/wasai/Static/hdjs/hdjs.css">
  <script type="text/javascript" src="http://127.0.0.1/my/wasai/Static/Js/jquery-1.7.2.min.js"></script>
  <script src="http://127.0.0.1/my/wasai/Static/hdjs/hdjs.min.js" type="text/javascript" charset="utf-8"></script>
  <script src="http://127.0.0.1/my/wasai/Static/public/js/index.js" type="text/javascript" charset="utf-8"></script>
  <link rel="stylesheet" type="text/css" href="http://127.0.0.1/my/wasai/Static/public/list.css">
  <link rel="stylesheet" type="text/css" href="http://127.0.0.1/my/wasai/Static/public/index.css">
  
  <style type="text/css">
  	.fenlei .attr{
  		color: #00CCCC;
  	}
  </style>
</head>

<body style="background: white;">
    <?php if(!defined('HDPHP_PATH'))exit;C('SHOW_NOTICE',FALSE);?>
<!--顶部开始-->
    <div class="top">
    	<div class="top1">
    	   <div class="top3">
    	   	<?php if(isset($_SESSION['uid']) || isset($_SESSION['nicname'])){ ?>
    	   	 <ul class="denglu one">
    			<li class="li1" style="width: 8px;">
    				<a href="<?php echo U('Index/Geren/index');?>"><img src="http://127.0.0.1/my/wasai/<?php echo $_SESSION['hearimg'];?>" alt="" style="width: 30px;height: 30px;position: relative;left: -8px;top: 7px;"/></a>
    			</li>
    			<li class="li2"><span><?php echo $_SESSION['nicname'];?></span>&nbsp;&nbsp;&nbsp;<a href="<?php echo U('Index/Login/out');?>">退出</a></li>
    		  </ul>
    	   	 <?php }else{ ?>
    		 <ul class="denglu">
    			<li class="li1"><a href="<?php echo U('Index/Login/denglu');?>">登陆</a></li>
    			<li class="li2"><a href="<?php echo U('Index/Login/index');?>">注册</a></li>
    		 </ul>
    		 <?php } ?>
    		 <ul class="gowu">
    		 	<li class="li2"><a href="<?php echo U('Index/Shop/index');?>" >购物车<span class="zongshuliang">    <?php if($_SESSION[cart][total_rows]){ ?><?php echo $_SESSION[cart][total_rows];?><?php }else{ ?>0<?php } ?></span> 件</a></li>
    			<li class="li1"><img src="http://127.0.0.1/my/wasai/Static/public/images/logo.png" alt="" /></li>
    			
    		 </ul>
    	   </div>
    	</div>
    	<div class="top2">
    		<div class="top4">
    			<a class="wosai" href=""><img src="" alt="" /></a>
	    	   	 <ul class="caidan">
	    			<li class="li1"><a href="<?php echo U('Index/Index/index');?>"></a></li>
	    			<li class="li2"><a href="<?php echo U('Index/Daohang/index');?>">市集</a></li>
	    			<li class="li2"><a href="<?php echo U('Index/List/index',array('cid'=>23));?>">服装</a></li>
	    			<li class="li2"><a href="<?php echo U('Index/List/index',array('cid'=>112));?>">饰品</a></li>
	    			<li class="li2"><a href="<?php echo U('Index/List/index',array('cid'=>124));?>">鞋包</a></li>
	    			<li class="li3"><a href="<?php echo U('Index/List/index',array('cid'=>137));?>">居家</a></li>
	    			<li class="li4"><a href="<?php echo U('Index/Index/index');?>"><img src="http://127.0.0.1/my/wasai/Static/public/images/wosai.png" alt="" /></a></li>
	    		 </ul>
	    		 <ul class="sousuo">
	    			<li class="li1">
	    				<form action="" method="post">
	    					<input class="sou" type="" placeholder="请输入要搜索的关键词" name="" value="" />
	    					<input class="tijiao" type="submit" value=""/>
	    				</form>
	    			</li>
	    			<li class="li2"><a href="<?php echo U('Index/List/index',array('cid'=>151));?>">数码</a></li>
	    			<li class="li3"><a href="<?php echo U('Index/List/index',array('cid'=>163));?>">文具</a></li>
	    		</ul>
    	   </div>
    	</div>
    </div>
    <!--顶部结束-->

    
    <!--列表开始-->
    <div class="nv">
    	<div class="nv_one">
    		<div class="nv_lie">
    			<a href=""><?php echo $da['father']['cname'];?></a>
    			<br />
    			<span><?php echo $da['cname'];?></span>
    		</div>
    		<ul class="u_one">
    			<?php foreach ($da['temp'] as $k=>$v){?>
    				<li><a href="<?php echo U('Index/List/index',array('cid'=>$v['cid']));?>"><?php echo $v['cname'];?></a></li>
    			<?php }?>
    		</ul>
    		
    	</div>
    </div>
    
    <div class="zui">
    	<div class="zui_one">
    		<div class="zui_three">
    			<a href="javascript:;" class="left">最热</a>
    			<a href="javascript:;" class="right">最新</a>
    		</div>
    	</div>
    </div>
    
    <?php foreach ($tempFinalAttr as $k=>$v){?>
	    <div class="fenlei">
	    	<div class="fen_one">
	    		<span><?php echo $v['name'];?>:</span>
	    	</div>
	    	<ul class="attrfather">
	    		<?php 
					//赋值给临时变量为了不破坏$param
					$temp = $param;
					//为了不限而准备的
					$temp[$k] = 0;
				?>
	    		<li><a href="<?php echo U('List/index',array('cid'=>$_GET['cid'],'param'=>implode('_',$temp)));?>"     <?php if($param[$k]==0){ ?>class="attr"<?php } ?> >全部</a></li>
	    		<?php foreach ($v['value'] as $kk=>$vv){?>
	    			<?php 
						$temp[$k] = $vv['gtid'];
					?>
	    			<li><a href="<?php echo U('List/index',array('cid'=>$_GET['cid'],'param'=>implode('_',$temp)));?>"     <?php if($param[$k]==$vv['gtid']){ ?>class="attr"<?php } ?> ><?php echo $vv['gtvalue'];?></a></li>
	    		<?php }?>
	    	</ul>
	    </div>
    <?php }?>
    
    <div class="fenlei_box">
    	<?php foreach ($goodsdata as $k=>$v){?>
	    	<div class="box_one">
	    		<div class="box_img">
	    			<img src="http://127.0.0.1/my/wasai/<?php echo $v['pic'];?>" style="width: 242px;height: 242px;"/>
	    		</div>
	    		<a href="<?php echo U('Index/Goods/index',array('gid'=>$v['gid']));?>"><?php echo $v['gname'];?></a>
	    		<span class="s1">一 <span class="s2"> ￥<?php echo $v['shopprice'];?>.00 </span> 一</span>
	    	</div>
    	<?php }?>
    	
    </div>
    
    
    <!--列表结束-->
    
    
    
    
  
    <!--底部-->
    <div class="foot">
    	<div class="gaoduan">
    		<span>高端定制上哇噻网</span>
    	</div>
    	<div class="di">
    		<ul>
    			<li><a href="">关于我们</a></li>
    			<li><a href="">联系我们</a></li>
    			<li><a href="">媒体报道</a></li>
    			<li><a href="">创意画报</a></li>
    			<li><a href="">招贤纳士</a></li>
    			<li><a href="">版权保护</a></li>
    			<li><a href="">用户条款</a></li>
    			<li><a href="">隐私声明</a></li>
    			<li><a href="">友情链接</a></li>
    			<li><a href="">网站地图</a></li>
    			<li><a href="">帮助中心</a></li>
    			<li><a href="">手工客</a></li>
    		</ul>
    		<ul class="u1">
    			<li>北京光年创艺信息技术有限公司 WowSai.com Copyright© 2008-2013 [京ICP备10020900][京公网安备11010502026420][京ICP证090011号]</li>
    		</ul>
    		<div class="tu">
    		   <ul>
    		   	    <li><img src="http://127.0.0.1/my/wasai/Static/public/images/2.png" alt="" /></li>
    		   	    <li><img src="http://127.0.0.1/my/wasai/Static/public/images/1.png" alt="" /></li>
    		   	    <li><img src="http://127.0.0.1/my/wasai/Static/public/images/3.png" alt="" /></li>
    		   </ul>
    	    </div>
    	</div>
    	
    </div>
    
    <div class="ding">
    	<a href="javascript:;"></a>
    </div>
    
</body>
</html>

